﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 结构
{
    public class cDimensions//尺寸
    {
        public cDimensions(double length, double width) 
        {
            Length = length;
            Width = width;
        }
        public double Length { get; set;  }
        public double Width { get; set; }

        public double Diagonal => Math.Sqrt(Length * Length + Width * Width);
    }
}
